package com.tongji.diy.event
{
	import flash.events.Event;
	import flash.geom.Point;
	
	public class FurnitureRotationEvent extends Event
	{
		public static const FURNITURE_ROTATION:String = "furnitureRotation";
		public var furnitureLocation:Point;
		public var rotatedAngle:Number;
		public var width:Number;
		public var length:Number;
		public var height:Number;
		public var parentRoomIndex:uint;
		public var furnitureIndex:uint;
		public var currentParentIsRoom:Boolean;
		public function FurnitureRotationEvent(type:String, furnitureIndex:uint,furnitureLocation:Point, rotatedAngle:Number, length:Number, width:Number, height:Number, parentRoomIndex:uint, currentParentIsRoom:Boolean = false,bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.furnitureLocation = furnitureLocation;
			this.rotatedAngle = rotatedAngle;
			this.width = width;
			this.length = length;
			this.height = height;
			this.parentRoomIndex = parentRoomIndex;
			this.furnitureIndex = furnitureIndex;
			this.currentParentIsRoom = currentParentIsRoom;
		}
		override public function clone():Event
		{
			return new FurnitureRotationEvent(type, furnitureIndex,furnitureLocation, rotatedAngle, length, width, height, parentRoomIndex,currentParentIsRoom);
		}
	}
}